public class CloseButtonSong extends Component {
	public boolean clicked;
	public boolean active;
	public Song song;
	////////////////////////////////////////////////////////////////////////////////////////////////////
	public CloseButtonSong(Song song)
	{
		super();
		width=12;
		height=12;
		clicked = false;
		active = false;
		this.song = song;
	}
	public void draw()
	{
		GLOBAL.processing.rectMode(GLOBAL.processing.CORNER);
		GLOBAL.processing.stroke(128);
		GLOBAL.processing.strokeWeight(1);
		GLOBAL.processing.noFill();
		GLOBAL.processing.rect(x, y, width, height);
		GLOBAL.processing.stroke(128);
		GLOBAL.processing.line(x+2, y+2, x+width-2, y+height-2);
		GLOBAL.processing.line(x+width-2, y+2, x+2, y+height-2);
		
		
		
		if(mouseOver()) 
		{
			super.draw();

		}
		

	}

	////////////////////////////////////////////////////////////////////////////////////////////////////
	String label;

	public void mouseCliked() {
		clicked = !clicked;
	}
}
